package android.widget.twitter;

import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.IBinder;
import android.util.Log;
import android.widget.RemoteViews;

public class twitterService extends Service{
	@Override
	public void onStart(Intent intent, int startId) {
//		if (this.batteryReceiver == null) {
//			this.batteryReceiver = batteryLevelReceiver();
//			registerReceiver(this.batteryReceiver, new IntentFilter(
//					Intent.ACTION_BATTERY_CHANGED));
//		}

		// Build the widget update.
//		RemoteViews updateViews = buildUpdate(this);
		Log.d("character", "updateViews");
		// Push update for this widget to the home screen
		ComponentName twitterWidget = new ComponentName(this,
				widgetProvider.class);
		AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);
//		appWidgetManager.updateAppWidget(twitterWidget, updateViews);
	}
	@Override
	public IBinder onBind(Intent arg0) {
		// TODO Auto-generated method stub
		return null;
	}

}
